package com.kyzh.core.pager.weal.accountbuy

import android.os.Bundle
import com.gushenge.core.base.activity.BaseActivity
import com.gushenge.core.requests.UserRequest
import com.kyzh.core.R
import com.kyzh.core.adapters.SmallAccountManagerAdapter
import kotlinx.android.synthetic.main.activity_smallaccountmanager.*

class SmallAccountManagerActivity : BaseActivity() {
    private val adapter = SmallAccountManagerAdapter()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_smallaccountmanager)
        rvList.adapter = adapter
        adapter.setEmptyView(R.layout.empty)
        UserRequest.getSmallAccountList {
            adapter.setList(this)
            adapter.notifyDataSetChanged()
        }
    }
}